const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  // 建立名字的映射
  name: state => state.user.userInfo.username,
  // 映射ID
  userId: state => state.user.userInfo.userId,
  // 头像
  staffPhoto: state => state.user.userInfo.staffPhoto,
  // 公司信息
  companyId: state => state.user.userInfo.companyId

}
export default getters
